package com.atmaowei.mapper;

import com.atmaowei.controller.request.TeacherOfTeacherPageRequest;
import com.atmaowei.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeacherOfTeacherMapper {

    String getCnoByCname(String cname);

    List<StudentAndGrade> page(TeacherOfTeacherPageRequest teacherOfTeacherPageRequest);

    List<Course> getCourse(String tno);

    Teacher getTeacherInfo(String tno);

    String getCnameByCno(String cno);

    void update(Teacher teacher);

    String checkPassword(String tno);

    void updatePassword(String tno, String password);

    void giveGrade(String sno, String cno, String tno, String grade);
}
